<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMerchantDetailsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('merchant_details', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('merchant_id')->index()->default(0)->comment('商户ID');
            $table->string('merchant_name',50)->default('')->comment('商户名称');
            $table->string('merchant_address',150)->default('')->comment('商户地址');
            $table->string('telephone',20)->default('')->comment('客户电话');
            $table->string('wechat',100)->default('')->comment('客户微信');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('merchant_details');
    }
}
